import BasicLayout from '@/layouts/basic-layout';

const meta = {
	auth: true
};

const pre = 'attendance-';

export default {
	path: '/attendance',
	name: 'attendance',
	redirect: {
		name: `${pre}internal`
	},
	meta,
	component: BasicLayout,
	children: [
		{
			path: 'internal',
			name: `${pre}internal`,
			meta: {
				...meta,
				title: '内勤信息'
			},
			component: () => import('@/pages/attendance/internal')
		},	{
			path: 'external',
			name: `${pre}external`,
			meta: {
				...meta,
				title: '外勤信息'
			},
			component: () => import('@/pages/attendance/external')
		},	{
			path: '/attendance/attend-detail',
			name: `attend-detail`,
			meta: {
				...meta,
				title: '考勤详情'
			},
			component: () => import('@/pages/attendance/attend-detail')
		},	{
			path: 'internalAndExternalWorkAnalysis',
			name: `${pre}internalAndExternalWorkAnalysis`,
			meta: {
				...meta,
				title: '内外勤数据分析'
			},
			component: () => import('@/pages/attendance/internalAndExternalWorkAnalysis')
		},
	]
};
